import java.io.FileReader;
import java.io.IOException;
import java.io.Reader;
import java.util.Arrays;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 22652
 * Date: 2024-04-22
 * Time: 22:53
 */
public class input_test_new {
    public static void main(String[] args) throws IOException {
        try (Reader reader = new FileReader("C:\\Users\\22652\\Desktop\\程序\\1.txt")) {
            while (true) {
                char buf[] = new char[1024];
                int n = reader.read(buf);
                if (n == -1) {
                    // 读到文件末尾了.
                    break;
                }
                for (int i = 0; i < n; i++) {
                    System.out.print(buf[i]);
                }
            }
        }
    }
}
